package com.ysu.his.entity.drug;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ysu.his.base.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 药品详细信息实体类
 */
@Data
public class DrugDetail extends BaseEntity
{
    //唯一标识
    private Long id;

    //药品id
    private Long drugId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date productionDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date expiryDate;

    private BigDecimal unitPrice;

    //库存数量
    private Integer quantity;

    //存储位置
    private String storageLocation;
}
